# nginx.sh
#root@ubuntu:/home/wuchunlong# ./nginx.sh

# 1、默认版本安装
apt-get update
apt-get install nginx  # #出现询问就Yes
#查看nginx进程是否启动
#ps -ef|grep nginx
#查看nginx的版本
nginx -v




# 失败！
# mkdir -p ~/download && cd ~/download
# wget http://nginx.org/download/nginx-1.18.0.tar.gz
# apt install build-essential libpcre3-dev libssl-dev
# tar -xvf nginx-1.18.0.tar.gz && cd nginx-1.18.0
# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
# make
# make install
# ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
# nginx -v